package cn.cxl.cxlutils.widget;

import android.view.View;

/**
 * ====================================================
 * <p>
 * 作者：CXL
 * <p>
 * 创建时间：2023/4/13 16:53
 * ====================================================
 */
public class MyView {
    private CustomView mTarget;

    public MyView(CustomView mTarget) {
        this.mTarget = mTarget;
    }

    public int getW() {
        return mTarget.getLayoutParams().width;

    }

    public void setW(int width) {
        mTarget.getLayoutParams().width = width;
        mTarget.requestLayout();
    }
}
